function start()
{
   
   var inputList1 = document.getElementById("fontb");
   inputList1.addEventListener("click",change, false);
   
   
   
} // end function start


function change(){
	
	window.alert("buu");
	
	
	var inputColor = document.getElementById("backgroundColor").value;
	  
	var inputFont = document.getElementById("font").value;
	 
	var inputTextColor = document.getElementById("textColor").value;
	
	
	
	
	document.body.setAttribute( "style", 
			"background-color: " + inputColor+";"+
			"font-family: " + inputFont+";"+			
		    "color: " + inputTextColor ); 
}




window.addEventListener( "load", start, false );




var helpArray = [ "Podaj Imie.",
                  "Podaj Nazwisko.",
                  "Podaj Miesiac Urodzin.",
                  "Podaj Adres Email",
                  "Kontynuuj",
                  "Czysc", "" ];
var helpText;

               
 function init()
                {
                   helpText = document.getElementById( "helpText" );
                   
                   // register listeners
                   registerListeners(document.getElementById( "imie" ), 0 );
                   registerListeners(document.getElementById( "nazwisko" ), 1 );
                   registerListeners(document.getElementById( "miesiac" ), 2 );
                   registerListeners(document.getElementById( "email" ), 3 );
                   registerListeners(document.getElementById( "submit" ), 4 );
                   registerListeners(document.getElementById( "reset" ), 5 );
                } 

 		
                
 function registerListeners( object, messageNumber )
                {
                   object.addEventListener( "focus", 
                      function() { helpText.innerHTML = helpArray[ messageNumber ]; },
                      false );
                   object.addEventListener( "blur", 
                      function() { helpText.innerHTML = helpArray[ 6 ]; }, false );
                } // end function registerListener

  window.addEventListener( "load", init, false );